package cms.utils.newimgmerge.dto;

import java.awt.image.BufferedImage;

/**
 * 存储图片的详细信息
 *
 * @author dhf
 * 2022年08月19日 20:40:07
 */
public class ImgDetailInfoDTO {
    /** 源图片 */
    private BufferedImage bufferedImage;

    /** 格式化宽度 */
    private Integer standardWidth;

    /** 格式化高度 */
    private Integer standardHeight;

    /** 宽高比 */
    private Double widthHeightRatio;

    /** 1横  2纵 */
    private Integer horizonOrVertical;

    public ImgDetailInfoDTO(BufferedImage bufferedImage, Integer standardWidth, Integer standardHeight, Double widthHeightRatio, Integer horizonOrVertical) {
        this.bufferedImage = bufferedImage;
        this.standardWidth = standardWidth;
        this.standardHeight = standardHeight;
        this.widthHeightRatio = widthHeightRatio;
        this.horizonOrVertical = horizonOrVertical;
    }

    public BufferedImage getBufferedImage() {
        return bufferedImage;
    }

    public void setBufferedImage(BufferedImage bufferedImage) {
        this.bufferedImage = bufferedImage;
    }

    public Integer getStandardWidth() {
        return standardWidth;
    }

    public void setStandardWidth(Integer standardWidth) {
        this.standardWidth = standardWidth;
    }

    public Integer getStandardHeight() {
        return standardHeight;
    }

    public void setStandardHeight(Integer standardHeight) {
        this.standardHeight = standardHeight;
    }

    public Double getWidthHeightRatio() {
        return widthHeightRatio;
    }

    public void setWidthHeightRatio(Double widthHeightRatio) {
        this.widthHeightRatio = widthHeightRatio;
    }

    public Integer getHorizonOrVertical() {
        return horizonOrVertical;
    }

    public void setHorizonOrVertical(Integer horizonOrVertical) {
        this.horizonOrVertical = horizonOrVertical;
    }
}
